package com.mspbots.usermanage.model.dto;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * com.mspbots.core.wise.model.UserResponse
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/10/28
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UserResponse extends BaseResponse {
    private Long cwUid;
    private Long tenantRoleId;
    private String firstname;
    private String lastname;
    private String email;
    private LocalDateTime createDate;
    private Long manager;
    private String software;
    private Boolean enable;
    private transient String teamsUserId;
    private transient String teamsUserName;
    private transient Long tsheetUserId;
    private transient String tsheetUserName;
    private transient String managerUserName;

    @Builder
    public UserResponse(Long id, Long tenantId, Long cwUid, Long tenantRoleId, String firstname, String lastname,
                        String email, LocalDateTime createDate,
                        Long manager, String software, Boolean enable, String teamsUserName,
                        String tsheetUserName, String managerUserName) {
        this.id = id;
        this.tenantId = tenantId;
        this.cwUid = cwUid;
        this.tenantRoleId = tenantRoleId;
        this.firstname = firstname;
        this.lastname = lastname;
        this.email = email;
        this.createDate = createDate;
        this.manager = manager;
        this.software = software;
        this.enable = enable;
        this.teamsUserName = teamsUserName;
        this.tsheetUserName = tsheetUserName;
        this.managerUserName = managerUserName;
    }
}
